package com.gong.mapper.role;

import com.gong.mapper.user.UserMapper;
import com.gong.pojo.Role;
import com.gong.utils.MybatisUtil;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;

import java.util.List;

/**
 * @ClassName: RoleMapperImpl
 * @Description: TODO
 * @Author: 。。。
 * @Data: 2021/10/228:35
 * @Version: 1.0
 **/
public class RoleMapperImpl implements RoleMapper {

	public SqlSessionFactory sqlSessionFactory = MybatisUtil.getSqlSessionFactory();
	SqlSession sqlSession = sqlSessionFactory.openSession(true);
	RoleMapper mapper = sqlSession.getMapper(RoleMapper.class);

	@Override
	public List<Role> getUserRole() {
		return mapper.getUserRole();
	}
}
